package factory;

import dal.Configuracion;
import dao.*;

/**
 *
 * @author Jose Carlos Gutierrez
 */
public abstract class FactoryDao {

	protected static FactoryDao instancia;
	public static FactoryDao getFactoryInstance(){
		if(instancia == null){
			Configuracion config = Configuracion.getConfiguracion();
			if(config.getDbEngine().equals("PostgreSQL"));
				instancia = FactoryDaoPostgreSQL.getFactoryInstance();
		}
		return instancia;
	}

	public abstract ProductoDao getNewProductoDao();

	public abstract DetalleventaDao getNewDetalleventaDao();

	public abstract TransportistaDao getNewTransportistaDao();

	public abstract SedeDao getNewSedeDao();

	public abstract VentaDao getNewVentaDao();

}

